/*
 *
 *  * | Licensed 未经许可不能去掉「OPENIITA」相关版权
 *  * +----------------------------------------------------------------------
 *  * | Author: xw2sy@163.com
 *  * +----------------------------------------------------------------------
 *
 *  Copyright [2024] [OPENIITA]
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 * /
 */

package cc.iotkit.data.model;

import cc.iotkit.model.miniAdmin.DeviceDistributor;
import cc.iotkit.model.miniAdmin.DeviceDistributorDetail;
import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 岗位表 sys_post
 *
 * @author Lion Li
 */

@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "device_distributor_binding_detail")
@AutoMapper(target = DeviceDistributorDetail.class)
public class TbDeviceDistributorDetail extends BaseEntity{

    /**
     * 岗位序号
     */
    @Id
    @GeneratedValue(generator = "SnowflakeIdGenerator")
    @GenericGenerator(name = "SnowflakeIdGenerator", strategy = "cc.iotkit.data.config.id.SnowflakeIdGenerator")
    @ApiModelProperty(value = "ID")
    private Long id;

    private Long bindId;

    // @ApiModelProperty(value = "通道名称")
    private String name;

    //@ApiModelProperty(value = "通道名称Label")
    private String label;

    //@ExcelProperty(value = "商品分类ID")
    private String goodsClassify;

    // @ApiModelProperty(value = "商品ID")
    private Long goodsId;

    // @ApiModelProperty(value = "数量")
    private int count;

    // @ApiModelProperty(value = "最大容量")
    private int maxCount;

    // @ApiModelProperty(value = "存放的设备ID（飞机）")
    private String deviceId;

    // @ApiModelProperty(value = "无人机识别方式(default：默认，electric：电流 ")
    private String droneRecognition;

    //@ApiModelProperty(value = "电池识别方式(default：默认，electric：电流 ")
    private String batteryRecognition;

    // @ApiModelProperty(value = "电池列表")
    private String batteryList;

    // 0- 空闲，1-非空闲
    private Integer status;


}
